main(n,i,v,s){for(gets(&n);~scanf("%d",&n);printf("%d\n",s-n+1))for(s=i=0;i++<n;~scanf("%d",&v),s+=v);}
